﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace TagBasedResourceManagePlatform.UI.Wpf
{
    /// <summary>
    /// CreateResourceWindow.xaml 的交互逻辑
    /// </summary>
    public partial class CreateResourceWindow : Window
    {
        public CreateResourceWindow()
        {
            InitializeComponent();
        }

        private void CreateResource()
        {
            Database.Resource resource = new Database.Resource()
            {
                AccessLevel = (Database.AccessLevel)Convert.ToInt32((UiComboxBoxAccessLevel.SelectedItem as ComboBoxItem).Tag),
                CreateTime=DateTime.Now,
            };
        }

        private void Part_Close_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

        private void UiButtonInsert_Click(object sender, RoutedEventArgs e)
        {

        }

        private void UiButtonCancel_Click(object sender, RoutedEventArgs e)
        {

        }

        private void UiButtonPickFile_Click(object sender, RoutedEventArgs e)
        {

        }

        private void UiButtonPickFolder_Click(object sender, RoutedEventArgs e)
        {

        }
    }
}
